









function ShowUsageJsWindowOnLoad()
{
pupulateSection(divForms, window.dialogArguments.Forms);
pupulateSection(divSystemViews, window.dialogArguments.SystemViews);
pupulateSection(divRelationshipMappings, window.dialogArguments.RelationshipMappings);
}

window.attachEvent('onload', ShowUsageJsWindowOnLoad);

function pupulateSection(oList, aObjects)
{
var oHeader = document.all(oList.id + "Header");

if (!IsNull(aObjects))
{
var aStrings;
if (typeof(aObjects.string) == "string")
{
aStrings = new Array(aObjects.string);
}
else
{
aStrings = aObjects.string;
}

var sHtml = "";
for (var i = 0; i < aStrings.length; i++)
{
sHtml += CrmEncodeDecode.CrmHtmlEncode(aStrings[i]) + "<br>";
}
oList.innerHTML = sHtml + "<br>";
}
else
{
oHeader.style.display = "none";
oList.style.display = "none";
}
}











function applychanges()
{
window.close();
}
